package com.qitmiaojie.service;

import com.qitmiaojie.controller.utils.Result;
import com.qitmiaojie.pojo.Material;

import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author Administrator
* @description 针对表【material】的数据库操作Service
* @createDate 2023-03-16 15:59:37
*/
public interface MaterialService extends IService<Material> {
    public Result AcquireMaterial(Integer userId,Integer Material);
    public boolean AddMaterial(Material material);
    public Long DeductMaterial(Long TaskId , Integer userId, Integer Material);
    public boolean SyncSqlAndRedis();
    /***
    * @description 查询用户申请的物资
    * @param currentPage
     * @param pageSize
    * @return
    * @author  miaojie
    * @date  2023/4/22
    */
    Result findByIdList(Integer currentPage, Integer pageSize);
}
